package com.tf_cut.admin.backend.api;

import com.tf_cut.admin.common.pojo.Result;
import com.tf_cut.admin.person.vo.PersonAndAccountVo;
import com.tf_cut.admin.platform.vo.GrantDetailVo;
import com.tf_cut.admin.platform.vo.OrderDetailVO;
import com.tf_cut.admin.platform.vo.PersonalTaxVo;
import com.tf_cut.admin.platform.vo.RechargeVo;
import com.tf_cut.admin.platform.vo.SellerAccount;
import com.tf_cut.admin.platform.vo.SetHistoryVo;
import com.tf_cut.admin.seller.vo.SellerAccountDetailVo;
import com.tf_cut.admin.seller.vo.SellerAndAccountVo;
import com.tf_cut.admin.seller.vo.SellerBillAndConsigneeVo;
import com.tf_cut.admin.seller.vo.SellerOrderVo;
import com.tf_cut.admin.seller.vo.SellerProjectVo;
import com.tf_cut.admin.seller.vo.SellerRefAgentVo;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.util.List;

@FeignClient(value = "service-backend",fallback=BackEndFallBack.class)
public interface BackEndApi {
	
	// agent 远端服务
	@PostMapping("/backend/agent/findListAgent")
    public String findListAgent(@RequestParam("json")String json);
	
	@PostMapping("/backend/agent/findListAgentNoPage")
    public String findListAgentNoPage(@RequestParam("json")String json);
	
	@PostMapping("/backend/agent/insert")
	public String insertAgentAndAccount(@RequestParam("json")String json);
	
	@PostMapping("/backend/agent/updateInfo")
	public String updateAgentInfo(@RequestParam("json")String json);
	
	@PostMapping("/backend/agent/get")
	public String getAgent(@RequestParam("id")String id);
	
	@PostMapping("/backend/agent/operation")
	public String operationAgent(@RequestParam("id")String id, @RequestParam("state")String state);

	@PostMapping("/backend/agent/qryUnBindAgent")
	public String qryUnBindAgent(@RequestParam("agentId") String agentId);

	@PostMapping("/backend/agent/bindAgent")
	public String bindAgent(@RequestParam("agentId") String agentId,@RequestParam("agentIds") String agentIds);

	@PostMapping("/backend/agent/unbindAgent")
	public String unbindAgent(@RequestParam("agentId") String agentId);
	
	// seller 远端服务
	@PostMapping("/backend/seller/findListSeller")
    public String findListSeller(@RequestParam("json")String json);
	
	// seller 远端服务
	@PostMapping("/backend/sellerConfig/findListSeller")
    public String findListConfigSeller(@RequestParam("json")String json);
	
	@PostMapping("/backend/sellerConfig/findByName")
	public String findByName(@RequestParam("id")String id);
	
	@PostMapping("/backend/seller/findListSellerNoPage")
    public String findListSellerNoPage(@RequestParam("json")String json);
	
	@PostMapping("/backend/seller/insert")
	public String insertSellerAndAccount(@RequestParam("json")String json);
	
	@PostMapping("/backend/sellerConfig/configSave")
	public String configSave(@RequestParam("json")String json);
	
	@PostMapping("/backend/sellerConfig/deleteByName")
	public String deleteByName(@RequestParam("id")String id);
	
	@PostMapping("/backend/seller/updateInfo")
	public String updateSellerInfo(@RequestParam("json")String json);
	
	@PostMapping("/backend/seller/updateStatus")
	public String updateStatus(@RequestParam("json")String json);

	@PostMapping("/backend/seller/get")
	public String getSeller(@RequestParam("id")String id);
	
	@PostMapping("/backend/seller/operation")
	public String operationSeller(@RequestParam("id")String id, @RequestParam("state")String state);
	
	@PostMapping("/backend/seller/importSeller")
	public String importSeller(@RequestParam("json")String json);

	// sellerRef 远端服务
	@PostMapping("/backend/seller/ref/findListSellerRefAgent")
	public String findListSellerRefAgent(@RequestParam("json")String json);
	
	@PostMapping("/backend/seller/ref/saveSellerRefAgent")
	public String saveSellerRefAgent(@RequestParam("json")String json);
	
	@PostMapping("/backend/seller/ref/getSellerRef")
	public String getSellerRef(@RequestParam("id")String id);

	@PostMapping("/backend/seller/ref/operation")
	public String operationRef(@RequestParam("id")String relationId, @RequestParam("state")String refState);

	// agent account 远端服务
	@PostMapping("/backend/agent/account/operation")
	public String operationAgentAccount(@RequestParam("id")String agentAccountId,
			@RequestParam("money") BigDecimal money, @RequestParam("direction") Integer direction , @RequestParam("tradeComment")String tradeComment);
	@PostMapping("/backend/agent/findAgentAccountDetail")
    public String findAgentAccountDetail(@RequestParam("json")String json);

	// seller_order 远端服务
	@PostMapping("/backend/seller/order/get")
	public String getSellerOrder(@RequestParam("id")String orderId);

	@PostMapping("/backend/seller/order/findListSellerOrder")
	public String findListSellerOrder(@RequestParam("json")String json);

	@PostMapping("/backend/seller/order/updateDetailPaymentStatus")
	public String updateDetailPaymentStatus(@RequestParam("json")String json);

	@PostMapping("/backend/seller/order/importOrder")
	public String importSellerOrder(@RequestParam("json")String jsonString);
	
	// CPM 远端服务
	@PostMapping("/backend/cpm/getQuarterCommission")
	public String getQuarterCommission(@RequestParam("json")String json);
	
	@PostMapping("/backend/cpm/payQuarter")
	public String payQuarter(@RequestParam("ids")String ids, @RequestParam("type")String type);

	// agent cms 远端服务
	@PostMapping("/backend/agent/cms/getAlreadyCommission")
	public String getAlreadyCommission(@RequestParam("json")String json);





	//mobile
	//home


	@PostMapping(value = "/backend/agent/mobile/agentInfoWithLogin",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public  String login(@RequestBody String mobileLoginVo);

	@GetMapping("/backend/agent/mobile/home")
	public String home(@RequestParam("agentId") String agentId);

	@GetMapping("/backend/agent/mobile/cash/withdrawallist")
	public  String withdrawallist(@RequestParam("agentId") String agentId,@RequestParam("startDate") String startDate,@RequestParam("endDate") String endDate);

	@PostMapping(value = "/backend/agent/mobile/cash/withdrawalApply",consumes =MediaType.APPLICATION_JSON_UTF8_VALUE )
	public  String withdrawalApply(@RequestBody String json);

	@GetMapping("/backend/agent/mobile/cash/bankcodelist")
	public  String bankcodelist();

	@GetMapping("/backend/agent/mobile/cash/accountBankList")
	public  String accountBankList(@RequestParam("agentId") String agentId);

	@PostMapping(value = "/backend/agent/mobile/cash/insertAccountBank",consumes =MediaType.APPLICATION_JSON_UTF8_VALUE)
	public  String insertAccountBank(@RequestBody String json);

	@GetMapping("/backend/agent/mobile/cash/agentCommionInfo")
	public  String agentCommionInfo(@RequestParam("agentId") String agentId);

	@GetMapping("/backend/agent/mobile/cash/findProfitlist")
	public String findProfitlist(@RequestParam("agentId") String agentId, @RequestParam("operType") Integer operType,
								 @RequestParam("startDate") String startDate, @RequestParam("endDate") String endDate);

	@GetMapping("/backend/agent/mobile/cash/findCommionInfolist")
	public  String findCommionInfolist(@RequestParam("agentId") String agentId, @RequestParam("startDate") String startDate,
									   @RequestParam("endDate") String endDate, @RequestParam("paySubject") String paySubject);


	@GetMapping("/backend/agent/mobile/seller/sellerDetail")
	public String sellerDetail(@RequestParam("sellerId") String sellerId);

	@PostMapping(value = "/backend/agent/mobile/seller/sellerProviderDay",consumes =MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String sellerProviderDay(@RequestBody String json);

	@PostMapping(value = "/backend/agent/mobile/seller/sellerProviderMonth",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String sellerProviderMonth(@RequestBody String json);

	@GetMapping("/backend/agent/mobile/seller/sellerlistWithAgentId")
	public String findListSeller(@RequestParam("agentId") String agentId, @RequestParam(required = false ,value = "agentName") String agentName,
	                                                           @RequestParam(name ="page", defaultValue = "1") int page,
															   @RequestParam(name="rows", defaultValue = "10") int rows);


	@PostMapping(value = "/backend/agent/mobile/seller/sellerAmountWithAgentId",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String sellerAmountWithAgentId(@RequestBody String json);

	@GetMapping(value = "/backend/agent/mobile/seller/findsellerWithAgentId",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String findsellerWithAgentId(@RequestParam("agentId") String agentId);





	////新增商户信息
	@GetMapping(value = "/backend/seller/mobile/seller/get",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String sellermobileget(@RequestParam("loginId")  String loginId);

	@PostMapping(value = "/backend/seller/mobile/seller/insert",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String insertmobileSellerAndAccount(@RequestBody  String  avo);

	@PostMapping(value = "/backend/seller/mobile/seller/updateInfo",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String updatemobileInfo(@RequestBody String svo);




	@GetMapping(value = "/backend/seller/mobile/project/fingPageProject",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String  fingPageProject(@RequestParam(value = "projectName",required = false)String projectName,
																			@RequestParam(value = "startDate",required = false) String startDate,
																			@RequestParam(value = "endDate",required = false) String endDate,
																			@RequestParam(value = "havePersonInfo",required = false) String havePersonInfo,
																			@RequestParam(value = "personInfoId",required = false) String personInfoId,
																			@RequestParam(value = "pageNum",required = false) Integer pageNum,
																			@RequestParam(value = "pageSize",required = false) Integer pageSize);
	@GetMapping(value = "/backend/seller/mobile/project/view",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public Result<SellerProjectVo> projectview(
			@RequestParam(value = "projectId",required = false) String projectId,
			@RequestParam(value = "personInfoId",required = false) String personInfoId);
	
	@GetMapping(value = "/backend/seller/mobile/project/get",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public List<SellerProjectVo> fingProject(@RequestParam("personName") String personName,
											 @RequestParam("sellerName") String sellerName,
											 @RequestParam("projectName")String projectName,
											 @RequestParam("startDate") String startDate,
											 @RequestParam("endDate") String endDate);

	@GetMapping(value = "/backend/seller/mobile/project/findBySellerId",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public List<SellerProjectVo> findBySellerId(
			@RequestParam(value = "projectName",required = false)String projectName,
			@RequestParam(value = "startDate",required = false) String startDate,
			@RequestParam(value = "endDate",required = false) String endDate,
			@RequestParam(value = "sellerId",required = false) String sellerId);

	@GetMapping(value = "/backend/seller/mobile/project/findProjectPersonInfoByProjectId",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String findProjectPersonInfoByProjectId(
			@RequestParam(value = "projectId",required = false) String projectId);

	@GetMapping(value = "/backend/seller/mobile/billtype/list",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String billTypeList();

	@PostMapping(value = "/backend/seller/mobile/bill/insert",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String insertBill(@RequestBody String svo);


	@PostMapping(value = "/backend/seller/mobile/project/insert",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String insertproject(@RequestBody String svo);

	@PostMapping(value = "/backend/seller/mobile/projectPerson/insert",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String insertprojectperson(@RequestBody String svo) ;

	//geren
	@GetMapping(value = "/backend/person/mobile/person/get",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String personmobileget(@RequestParam("loginId")  String loginId);

	@PostMapping(value = "/backend/person/mobile/person/insert",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String insertPersonAndAccount(@RequestBody  String  avo);
	@PostMapping(value = "/backend/person/mobile/person/updateInfo",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String updatepersonmobileInfo(@RequestBody String svo);

	@PostMapping(value = "/backend/person/mobile/bill/insert",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String insertPersonBill(@RequestBody String svo);

	@PostMapping(value = "/backend/admin/person/bill/list",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryPersonBillList(@RequestParam("json")String json);

	@PostMapping(value = "/backend/admin/seller/bill/list",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String querySellerBillList(@RequestParam("json")String json);
	
	@PostMapping(value = "/backend/admin/seller/bill/findBybill",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public List<SellerBillAndConsigneeVo> findBybill(@RequestParam("sellerCompanyName") String sellerCompanyName,
    		@RequestParam("status") String status,@RequestParam("startDate") String startDate,
            @RequestParam("endDate") String endDate);

	@PostMapping(value = "/backend/seller/info/list",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String querySellerInfoList(@RequestParam("json")String json);

	@PostMapping(value = "/backend/seller/getServiceType",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String querySellerServiceType();

	@PostMapping(value = "/backend/admin/person/info/list",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryPersonInfoList(@RequestParam("json")String json);

	@PostMapping(value = "/backend/admin/platform/recharge/list",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryPlatformRechargeList(@RequestParam("json")String json);

	@PostMapping(value = "/backend/admin/platform/grant/list",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryPlatformGrantList(@RequestParam("json")String json);

	@PostMapping(value = "/backend/admin/platform/agent/withdraw/list",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryAgentWithdrawList(@RequestParam("json")String json);

	@GetMapping(value = "/backend/admin/platform/grant/export",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	List<GrantDetailVo> queryPlatformGrantExportList(@RequestParam("platformGrantId") String platformGrantId);
	
	
	@GetMapping(value = "/backend/admin/platform/recharge/export",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	List<RechargeVo> queryRechargeExportList(@RequestParam("sellerName") String sellerName);
	
	@GetMapping(value = "/backend/admin/platform/grant/exportGrant",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	List<SellerOrderVo> exportGrant(@RequestParam("sellerName") String sellerName,
    		@RequestParam("serviceName") String serviceName,@RequestParam("startDate") String startDate,
            @RequestParam("endDate") String endDate,
            @RequestParam("orderId") String orderId);

	
	
	@PostMapping(value = "/backend/admin/platform/recharge/queryByMoney",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public List<RechargeVo> queryByMoney(@RequestParam("sellerName") String sellerName );
	
	
	@PostMapping(value = "/backend/seller/order/findByProjectInfo",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public List<SellerOrderVo> findByProjectInfo(@RequestParam("orderId") String orderId );
	

	@PostMapping(value = "/backend/admin/platform/grant/listInfo",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String queryPlatformGrantListInfo(@RequestParam("platformGrantId") String platformGrantId);

	@PostMapping(value = "/backend/payment/queryPayment",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String queryGrantDetailPaymentStatus(@RequestParam("orderId") String orderId, @RequestParam("type") String type);

	@GetMapping(value = "/backend/admin/platform/grant/queryByNames",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public List<OrderDetailVO> queryByNames(@RequestParam("time") String time,@RequestParam("tax")String tax);
	
	@GetMapping(value = "/backend/admin/platform/grant/queryByName",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public List<PersonalTaxVo> queryByName(@RequestParam("payeeName") String payeeName,
            @RequestParam("serviceName") String serviceName,
            @RequestParam("time") String[] time,@RequestParam("cardCode") String cardCode,
            @RequestParam("startaxAmount") String startaxAmount,@RequestParam("endtaxAmount") String endtaxAmount,
            @RequestParam("startaxMoney") String startaxMoney,@RequestParam("endtaxMoney") String endtaxMoney);
	
	@GetMapping(value = "/backend/admin/platform/profit/queryByProfit",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryByProfit(@RequestParam("page") int page,
			@RequestParam("rows") int rows,
			@RequestParam("sellerName") String sellerName,
            @RequestParam("startDate") String startDate,
            @RequestParam("endDate") String endDate);
	
	@PostMapping(value = "/backend/admin/platform/grant/queryApply",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryApply(@RequestParam("page") int page,@RequestParam("rows") int rows,@RequestParam("sellerName") String sellerName,
    		@RequestParam("serviceName") String serviceName,@RequestParam("startDate") String startDate,
            @RequestParam("endDate") String endDate,
            @RequestParam("orderId") String orderId);
	
	@PostMapping(value = "/backend/admin/platform/grant/findMoney",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public List<SellerOrderVo> findMoney(@RequestParam("sellerName") String sellerName,
    		@RequestParam("serviceName") String serviceName,@RequestParam("startDate") String startDate,
            @RequestParam("endDate") String endDate,
            @RequestParam("orderId") String orderId);
	
	@PostMapping(value = "/backend/admin/seller/bill/queryBilling",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryBilling(@RequestParam("page") int page,@RequestParam("rows") int rows,@RequestParam("sellerCompanyName") String sellerCompanyName,
    		@RequestParam("status") String status,@RequestParam("startDate") String startDate,
            @RequestParam("endDate") String endDate);
	
	@PostMapping(value = "/backend/admin/person/info/queryPersonInfo",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryPersonInfo(@RequestParam("page") int page,@RequestParam("rows") int rows,@RequestParam("personName") String personName,@RequestParam("startDate") String startDate,
            @RequestParam("endDate") String endDate,@RequestParam("cardStatus") String cardStatus,@RequestParam("cardCode") String cardCode,@RequestParam("iphone") String iphone);

	@PostMapping(value = "/backend/admin/platform/recharge/update",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String updateRecharge(@RequestBody String svo);

	@PostMapping(value = "/backend/seller/order/update",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String updateGrant(@RequestBody String svo);

	@PostMapping(value = "/backend/person/mobile/bank/insert",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String insertPersonBank(@RequestBody String svo);

	@GetMapping(value = "/backend/person/mobile/bank/get",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String getPersonBank(@RequestParam("personId")  String personId);

	@PostMapping(value = "/backend/admin/platform/grantdetail/update",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String updateGrantDetail(@RequestBody String svo);

	@PostMapping("/backend/service/insert")
	public String insertServiceInfo(@RequestParam("json")String json);


	@PostMapping("/backend/service/ServicePersonalIncomeTaxSeting/insert")
	public String ServicePersonalIncomeTaxSetingInsert(@RequestParam("json")String json);


	@PostMapping("/backend/service/updateInfo")
	public String updateServiceInfo(@RequestParam("json")String json);

	@PostMapping("/backend/service/ServicePersonalIncomeTaxSeting/updateInfo")
	public String ServicePersonalIncomeTaxSetingUpdateInfo(@RequestParam("json")String json);

	@PostMapping("/backend/service/ServicePersonalIncomeTaxSeting/delete")
	public String ServicePersonalIncomeTaxSetingDelete(@RequestParam("json")String json);


	@PostMapping("/backend/service/findListService")
	public String findListService(@RequestParam("json")String json);

	@PostMapping("/backend/service/get")
	public String getService(@RequestParam("id")String id);

	@PostMapping("/backend/service/operation")
	public String operationService(@RequestParam("id")String id, @RequestParam("state")String state);

    @PostMapping("/backend/service/ref/findListServiceRefSeller")
    public String findListServiceRefSeller(@RequestParam("json")String json);

    @PostMapping("/backend/service/findListServiceNoPage")
    String findListServiceNoPage(@RequestParam("json")String json);

	@PostMapping("/backend/service/ServicePersonalIncomeTaxSeting/queryList")
	String ServicePersonalIncomeTaxSetingVo_list(@RequestParam("json")String json);

    @PostMapping("/backend/service/ref/saveSellerRefService")
    public String saveSellerRefService(@RequestParam("json")String json);

    @PostMapping("/backend/service/ref/operation")
    public String operationServiceSellerRef(@RequestParam("id")String relationId, @RequestParam("state")String refState);

	@PostMapping(value = "/backend/admin/platform/agent/withdraw/update",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String updateAgentCash(@RequestBody String svo);

	@GetMapping("/backend/dict/getShowTime")
	String getShowTime();

	@GetMapping(value = "/backend/dict/getdataDicVo",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String getdataDicVoWithCode(@RequestParam("dataicCode")String dataicCode);

	@GetMapping(value = "/backend/dict/sendMail",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String sendMail(@RequestParam("flag")String flag,@RequestParam("name")String name,@RequestParam("money")String money,@RequestParam("time")String time);

	@PostMapping(value = "/backend/dict/updDatadic",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	int updDatadic(@RequestParam("json") String json);

	@GetMapping("/backend/sms/getSmsCode")
	String getSmsCode(@RequestParam("mobile") String mobile);

	@PostMapping(value = "/backend/seller/qryBalance",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String qryBalance(@RequestParam("json") String svo);

	@PostMapping(value = "/backend/seller/qryBalanceDetail",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String qryBalanceDetail(@RequestParam("json") String svo);

	@PostMapping(value = "/backend/seller/qryByCondition",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String qryByCondition(@RequestParam("json") String svo);

	@PostMapping("/backend/admin/platform/grant/save")
	public String saveSetup(@RequestParam("cardCode")String cardCode,@RequestParam("time")String time,@RequestParam("payAmount1")double payAmount1,@RequestParam("nottax")String nottax,
			@RequestParam("perAmount")String perAmount,@RequestParam("serviceId")String serviceId,@RequestParam("sellerId")String sellerId,@RequestParam("tax")double tax,
			@RequestParam("ffMoney")String ffMoney,@RequestParam("payeeName")String payeeName,@RequestParam("provideDetailId")String provideDetailId);

	@PostMapping("/backend/admin/platform/grant/findByTime")
	public List<OrderDetailVO> findByTime();
	
	@PostMapping("/backend/admin/platform/grant/findByQueryTime")
	public List<PersonalTaxVo> findByQueryTime();

	@PostMapping(value = "/backend/admin/platform/grant/importData",produces = {MediaType.APPLICATION_JSON_UTF8_VALUE},consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
	public String importData(@RequestPart("excelUploadFile") MultipartFile excelUploadFile);

	@GetMapping(value = "/backend/admin/platform/grant/queryByHistory",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryByHistory(@RequestParam("page") int page,@RequestParam("rows") int rows,@RequestParam("paytaxName") String paytaxName,
    		@RequestParam("starSalesInto") String starSalesInto,@RequestParam("endSalesInto") String endSalesInto,@RequestParam("startaxMoney") String startaxMoney,
    		@RequestParam("endtaxMoney") String endtaxMoney,@RequestParam("starStarTime") String starStarTime,@RequestParam("endStarTime") String endStarTime,
    		@RequestParam("starEndTime") String starEndTime,@RequestParam("endEndTime") String endEndTime,@RequestParam("taxNumber") String taxNumber);

	
	@PostMapping(value = "/backend/seller/queryDetail",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String queryDetail(@RequestParam("page") int page,@RequestParam("rows") int rows,@RequestParam("projectCode") String projectCode);

	@PostMapping(value = "/backend/seller/update",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String update(@RequestParam("status")String status, @RequestParam("projectCode")String projectCode);

	@PostMapping(value = "/backend/api/getSellerInfo",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String getSellerInfo(@RequestParam("appKey") String appkey);

	@PostMapping(value = "/backend/api/singlePaid",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String singlePaid(@RequestParam("json") String json,@RequestParam("platform") String platform,@RequestParam("merchantNumber") String merchantNumber);

	@PostMapping(value = "/backend/api/getBalance",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String getBalance(@RequestParam("sellerId") String sellerId);

	@PostMapping(value = "/backend/api/qryRecord",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String qryRecord(@RequestParam("json") String json);
	
	@PostMapping(value = "/backend/api/queryBySellerName",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public Integer queryBySellerName(@RequestParam("sellerName") String sellerName,@RequestParam("sellerCompanyName")String sellerCompanyName);
	
	@PostMapping(value = "/backend/api/findbyqueryPerson",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public PersonAndAccountVo findbyqueryPerson(@RequestParam("identityCardNum") String identityCardNum);
	
	@PostMapping(value = "/backend/api/queryBySellerRefAgent",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public SellerRefAgentVo queryBySellerRefAgent(@RequestParam("agentNumber") String agentNumber);
	
	@PostMapping(value = "/backend/api/queryBySellerId",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public SellerAndAccountVo queryBySellerId(@RequestParam("appIdKey")String appIdKey);
	
	@PostMapping(value = "/backend/api/findByType",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	public String findByType(@RequestParam("serviceType")String serviceType);
	
	// agent account 远端服务
	@PostMapping(value = "/backend/seller/saveSellerInfo",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
	String saveSellerInfo(@RequestBody String avo);



	
	
	

	
}
